{% extends 'layouts/base.html' %}
{% block content %}

<div class="row">
    <div class="col-xs-12">
        <!-- PAGE CONTENT BEGINS -->
        <div class="row">
            <div class="col-xs-12">
                <form action="{{ url('backend/order/batch') }}" method="post">
                <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th class="center">
                                <label class="position-relative">
                                    <input type="checkbox" class="ace" />
                                    <span class="lbl"></span>
                                </label>
                            </th>
                            <th><a href="{{ url('curr_url', {'sort':'id'})}}">序号</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'order_number'})}}">订单号</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'carry_type'})}}">搬家业务</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'client_type'})}}">C个人，Q企业 Z政府 O其他</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'client'})}}">联系人</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'mobile'})}}">手机</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'start_address'})}}">出发地址</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'arrive_address'})}}">到达地址</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'scg_id'})}}">附加费id</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'item_id'})}}">大件物品id</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'fm_id'})}}">领班人员</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'m_id'})}}">车辆配备</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'carrydate'})}}">搬运日期</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'is_bill'})}}">1开发票 0不开</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'total_price'})}}">总共价格</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'already_price'})}}">已支付价格</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'order_state'})}}">订单状态 0未处理，1进行中，2等待支付预约金，3完成</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'createtime'})}}">创建日期</a></th>
                            <th></th>
                        </tr>
                    </thead>

                    <tbody>


                    {% for row in result %}
                    <tr>
                        <td class="center">
                            <label class="position-relative">
                                <input name="dels[]" value="{{row.id}}" type="checkbox" class="ace" />
                                <span class="lbl"></span>
                            </label>
                        </td>

                        <td> {{row.id}} </td>
                        <td> {{row.order_number}} </td>
                        <td> {{row.carry_type}} </td>
                        <td> {{row.client_type}} </td>
                        <td> {{row.client}} </td>
                        <td> {{row.mobile}} </td>
                        <td> {{row.start_address}} </td>
                        <td> {{row.arrive_address}} </td>
                        <td> {{row.scg_id}} </td>
                        <td> {{row.item_id}} </td>
                        <td> {{row.fm_id}} </td>
                        <td> {{row.m_id}} </td>
                        <td> {{row.carrydate}} </td>
                        <td> {{row.is_bill}} </td>
                        <td> {{row.total_price}} </td>
                        <td> {{row.already_price}} </td>
                        <td> {{row.order_state}} </td>
                        <td> {{row.createtime}} </td>

                        <td>
                            <div class="hidden-sm hidden-xs btn-group">
                                <a class="btn btn-xs btn-danger adel" href="{{url('backend/order/del', {'id':row.id})}}">
                                    <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                </a>
                                <a class="btn btn-xs btn-info" href="{{url('backend/order/edit', {'id':row.id})}}">
                                    <i class="ace-icon fa fa-pencil bigger-120"></i>
                                </a>
                            </div>
                        </td>
                    </tr>
                    {% endfor %}
                    </tbody>
                </table>

                <div class="row">
                    <div class="col-xs-6"><button type="submit" class="btn btn-white btn-warning btn-bold"><i class="ace-icon fa fa-trash-o bigger-120 orange"></i>鎻愪氦</button></div>
                    <div class="col-xs-6">
                        <div class="dataTables_paginate paging_bootstrap">
                            <ul class="pagination">
                                {{pagestr | raw}}
                            </ul>
                        </div>
                    </div>
                </div>
                </form>

            </div><!-- /.span -->
        </div><!-- /.row -->


    </div>
</div>

<!-- inline scripts related to this page -->
{% endblock %}
